const app = getApp();
const { throttle } = require('../../common/utils/util');
Component({
  properties: {
    taskList: {
      type: Array,
      value: [],
    },
    list: {
      type: Object,
      value: {},
    },
  },
  methods: {
    onNavigate:throttle(function(e) {
      const { url = '', ...params } = e.currentTarget.dataset;
      url && app.util.navigateTo(url, params);
    }),
  },
});
